package com.ljye.jg.ljye.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.ImageView;

import com.ljye.jg.ljye.R;
import com.ljye.jg.ljye.fragment.Fragment_bill;

public class Activity_Bill extends FragmentActivity {
    public View.OnClickListener listener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            switch (view.getId()) {
                case R.id.back://返回
                    finish();
                    break;

                default:
                    break;
            }
        }
    };
    private ImageView back;//返回

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bill);
        initView();
        back.setOnClickListener(listener);
        getSupportFragmentManager().beginTransaction().replace(R.id.frag, new Fragment_bill()).commit();

    }

    private void initView() {
        back = (ImageView) findViewById(R.id.back);


    }
}
